<table class="table table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>投票标题</th>
			<th>状态</th>
			<th>投票状态</th> 
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="voteLists" id="vo">
			<tr  class="vo-tr">
				<td class="vo-id">{$vo.id}</td>
				<td>{$vo.title}</td>
			  <td class="status">{$vo["status"]?"可用":"禁用"}</td>
			   <td class="open">{$vo["open"]?"投票开启":"投票关闭"}</td>
				<td>
	
					<a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}">修改</a>
				   
					<a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/remove">移除</a>
					<a class="btn btn-info btn-xs action-status" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.status}" data-action-status-txt="可用 禁用" data-action-url="__CONTROLLER__/setStatus">{$vo["status"]?"禁用":"可用"}</a>
					 <a class="btn btn-info btn-xs action-open" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.open}" data-action-status-txt="投票开启 投票关闭 " data-action-url="__CONTROLLER__/setOpen">{$vo["open"]?"投票关闭":"投票开启"}</a>
					<a class="btn btn-primary btn-xs" href="{:U('MicroVoteItem/index',array('micro_vote_id'=>$vo['id']))}">选项管理</a> 
					<a class="btn btn-primary btn-xs" href="{:U('MicroTheme/index',array('model'=>'microVote','id'=>$vo['id']))}">主题设置</a>
				     <a class="btn btn-primary btn-xs" href="javascript:void(0)" id="copy-home-url-{$vo.id}" data-url="{$vo.url}">前台地址</a>
					 <a class="btn btn-primary btn-xs" href="{:U('MicroVoteRecord/index',array('micro_vote_id'=>$vo['id']))}">投票人信息管理</a>
					  <a class="btn btn-primary btn-xs" href="{:U('MicroVoteComment/index',array('micro_vote_id'=>$vo['id']))}">评论管理</a>
					   <a class="btn btn-primary btn-xs" href="{:U('MicroVoteCensus/index',array('micro_vote_id'=>$vo['id']))}">投票结果统计</a>
				</td>
			</tr>
		</volist>
	</tbody>
</table>
<div class="pagination">{$pagination}</div>
<script src="__PUBLIC__/Style/Common/js/ZeroClipboard.js"></script>
<script type="text/javascript">
  $(function(){
	    $(".vo-tr").each(function(i){
       	 $().copyPaste({
                text: $("#copy-home-url-"+$(".vo-id").eq(i).html()).attr("data-url"),
                id:  $("#copy-home-url-"+$(".vo-id").eq(i).html()).attr("id")
              });
       })
      
  });
</script>




